package com.yoda.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.dto.TagDto;
import com.yoda.dto.TagPageQuery;
import com.yoda.entity.YddTag;
import com.yoda.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import com.yoda.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
@Service
public interface IYddTagService extends IService<YddTag> {

    /**
     * 查询所有标签
     * @return
     */

    public Result selectAll();

    /**
     * 新增标签
     * @return
     */
    public Result addLabel(TagPageQuery dto);

    /**
     * 修改标签
     * @param dto
     * @return
     */
    public Result updateLabel(TagDto dto);

    /**
     * 查询全部标签
     * @return
     */


    /**
     * 标签列表分页查询
     * @param dto
     * @return
     */
    public Result page(TagPageQuery dto);

    /**
     * 根据id查询标签
     * @param id
     * @return
     */
    public Result getById(Integer id);

    /**
     * 根据ID删除标签
     * @return
     */
    public Result delById(Integer id);

}
